using System;
using System.Collections.Generic;
using System.Text;

using System.IO;

namespace testStringRead
{
    class Program
    {
        static void Main(string[] args)
        {
            
            string strTest = "abcdefghiflajflajflsdoofjpgjeoaof";
            byte[] buf = new byte[1024];
            char[] charBuf = new char[1024];
            MemoryStream stream = new MemoryStream(Encoding.GetEncoding("GB2312").GetBytes(strTest));
            int nIndex = 0;
            while (nIndex < stream.Length)
            {
                stream.Read(buf, nIndex, 6);
                nIndex = (int)stream.Position;
                charBuf = Encoding.GetEncoding("GB2312").GetChars(buf);
                Console.WriteLine(charBuf);
            }
            Console.Read();
        }
    }
}
